﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DHQGHN.DAL.Common;

namespace DHQGHN.DAL
{
    public interface IDAO<T>
    {
        List<T> GetAll(Dictionary<string, string> mapDictionary);
        DataPage<T> GetListPaging(T model, int pageSize, int pageIndex, bool compareEqual, Dictionary<string, string> mapDictionary);
        T GetById(string id, Dictionary<string, string> mapDictionary);
    }

    public interface IBO<T>
    {
        bool Save(T model);
        bool Delete(string[] listId);
        bool Active(string id);
    }

    public interface IBOF<T>
    {
        List<T> GetAll();
        DataPage<T> GetListPaging(T model, int pageSize, int pageIndex, bool compareEqual);
        T GetById(string id);
    }
}
